from django.test import TestCase

# Create your tests here.



import random,math
from datetime import datetime
import time

res1 = str(random.randint(0,10)*10)
res2 = str(random.randint(0,10)*10)
res3 = str(int(time.time()))
print(res3)
print(res1,res2)
print(res1+res2+res3)

def get_order_number():
    import random
    from datetime import datetime
    res1 = str(random.randint(0,10)*10)
    res2 = str(random.randint(0,10)*10)
    res3 = str(int(time.time()))
    return res1+res2+res3

# print([1].pop(1))

# print([0,0,0,0,0,0].index(1))
goodsid = 1
dict = [{"id":1},{"id":2}]
lst = []
for i in dict:
    if i["id"] == goodsid:
       lst.append(1)
    else:
        lst.append(0)

print(lst.index(1))